﻿using Microsoft.AspNetCore.Mvc.Razor;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace MvcSample.ViewLocationExpanders
{
    /// <summary>
    /// Feature view location expander.
    /// </summary>
    public class FeatureViewLocationExpander
        : IViewLocationExpander
    {
        public IEnumerable<string> ExpandViewLocations(ViewLocationExpanderContext context, IEnumerable<string> viewLocations)
        {
            viewLocations = new List<string>()
            {
                "Feature/Views/{1}/{0}.cshtml",
                "Feature/Views/Shared/{0}.cshtml",
                "Feature/Pages/Shared/{0}.cshtml"
            };
            return viewLocations;
        }

        public void PopulateValues(ViewLocationExpanderContext context)
        {

        }
    }
}
